home *** CD-ROM | disk | FTP | other *** search
- using System;
- using System.Drawing;
- using System.Collections;
- using System.ComponentModel;
- using System.Windows.Forms;
-
- namespace TestCSharpAudioCDRipper
- {
- /// <summary>
- /// Summary description for Form2.
- /// </summary>
- public class Form2 : System.Windows.Forms.Form
- {
- internal System.Windows.Forms.Label Label1;
- internal System.Windows.Forms.ProgressBar pb2;
- internal System.Windows.Forms.ProgressBar pb1;
- internal System.Windows.Forms.Button Button1;
- /// <summary>
- /// Required designer variable.
- /// </summary>
- private System.ComponentModel.Container components = null;
-
- public Form2()
- {
- //
- // Required for Windows Form Designer support
- //
- InitializeComponent();
-
- //
- // TODO: Add any constructor code after InitializeComponent call
- //
- }
-
- /// <summary>
- /// Clean up any resources being used.
- /// </summary>
- protected override void Dispose( bool disposing )
- {
- if( disposing )
- {
- if(components != null)
- {
- components.Dispose();
- }
- }
- base.Dispose( disposing );
- }
- public string FileName;
- public Form1 form;
- #region Windows Form Designer generated code
- /// <summary>
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- /// </summary>
- private void InitializeComponent()
- {
- this.Label1 = new System.Windows.Forms.Label();
- this.pb2 = new System.Windows.Forms.ProgressBar();
- this.pb1 = new System.Windows.Forms.ProgressBar();
- this.Button1 = new System.Windows.Forms.Button();
- this.SuspendLayout();
- //
- // Label1
- //
- this.Label1.Location = new System.Drawing.Point(9, 14);
- this.Label1.Name = "Label1";
- this.Label1.Size = new System.Drawing.Size(366, 16);
- this.Label1.TabIndex = 11;
- //
- // pb2
- //
- this.pb2.Location = new System.Drawing.Point(10, 53);
- this.pb2.Name = "pb2";
- this.pb2.Size = new System.Drawing.Size(366, 8);
- this.pb2.Step = 1;
- this.pb2.TabIndex = 9;
- //
- // pb1
- //
- this.pb1.Location = new System.Drawing.Point(9, 38);
- this.pb1.Name = "pb1";
- this.pb1.Size = new System.Drawing.Size(366, 8);
- this.pb1.Step = 1;
- this.pb1.TabIndex = 8;
- //
- // Button1
- //
- this.Button1.Location = new System.Drawing.Point(286, 75);
- this.Button1.Name = "Button1";
- this.Button1.Size = new System.Drawing.Size(88, 24);
- this.Button1.TabIndex = 12;
- this.Button1.Text = "Cancel";
- //
- // Form2
- //
- this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
- this.ClientSize = new System.Drawing.Size(382, 106);
- this.Controls.AddRange(new System.Windows.Forms.Control[] {
- this.Button1,
- this.Label1,
- this.pb2,
- this.pb1});
- this.Name = "Form2";
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "Rip Progress";
- this.Load += new System.EventHandler(this.Form2_Load);
- this.ResumeLayout(false);
-
- }
- #endregion
-
- private void Button1_Click(object sender, System.EventArgs e)
- {
- form.CancelRip = true;
- }
-
- public void DrawTextMy(string text)
- {
- if (text.Length < 1) text = FileName;
- //text = MinimizeName(text,Canvas,pb1->Width)
- Label1.Text = text;
- Label1.Refresh();
- }
-
- private void Form2_Load(object sender, System.EventArgs e)
- {
-
- }
-
- }
- }
-